package sistemioperativi.monitor.es9;

import java.util.Random;
import java.util.concurrent.TimeUnit;

public class ThreadUtente implements Runnable {

	private Random random = new Random();

	
	private static final int MAX_RANDOM = 10;
	private static final int min = 1;
	private static final int max = 3;
	
	public void run() {
		

	}
	
	private void attesaCasuale(int min, int max){
		try {TimeUnit.SECONDS.sleep(random.nextInt(max-min+1)+min);}
		catch (InterruptedException e) {}
	}
	
	private boolean condizioneCasuale(){
		
		if(random.nextInt()%2 == 0)
			return true;
		return false;
	}

}
